package com.test;

import Factory.RpcFactory;
import com.test.Service.Impl.UserServiceImpl;
import com.test.Service.UserService;
import org.apache.zookeeper.KeeperException;

import java.io.IOException;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/2/21 星期一 14:51
 */
public class ServerApplication {

    public static void main(String[] args) throws IOException, InterruptedException, KeeperException {

        UserService userService = new UserServiceImpl();

        RpcFactory.registerService(UserService.class,userService);
    }
}
